import service from './index'

//按需导出
// export function glyglPageCount(data) {
//     return service({
//         url: '/admin/class/page/count',
//         method: 'get',
//         params:data
//     })
// }
export function glyglPage(data) {
    return service({
        url: '/admin/admin',
        method: 'get',
        params:data
    })
}
export function glyglAdd(data) {
    return service({
        url: '/admin/admin',
        method: 'post',
        data:data
    })
}
//详情
export function glyglDetail(id) {
    return service({
        url: '/admin/admin/'+id,
        method: 'get',  
    })
}
//编辑
export function glyglEdit(data) {
    return service({
        url: '/admin/admin/course',
        method: 'put',
        data:data  
    })
}
//删除
export function glyglDelete(id) {
    return service({
        url: '/admin/admin/'+id,
        method: 'delete',

    })
}